/*
 * Copyright (C) 2019-2020 Alibaba Group Holding Limited
 */

#ifndef _SAMPLING_H_

#include <stdint.h>

/* sampling api */
int sample_init(int sample_freq, int sample_bits, int samples_per_frame);
int sample_open(void);
int sample_start(void);
uint32_t sample_read(uint8_t *buf, uint32_t count);
int sample_stop(void);
int sample_close(void);

#endif
